package com.jeeplus.modules.guide.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * ClassName: ApptServiceOffices
 * Function:  预约服务网点
 * Date:      2021/6/3 15:13
 *
 * @author hanKongbin
 * version    V1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel("网点数据")
public class ServiceOffices {

    @ApiModelProperty("办理⽹点数量")
    private int count;

    @ApiModelProperty("所有网点")
    private List<Detail> serviceOffices;


    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class Detail {

        @ApiModelProperty("⽹点ID")
        private String id;

        @ApiModelProperty("业务名称(非事项)")
        private String businessName;

        @ApiModelProperty("业务ID(非事项)")
        private String businessId;

        @ApiModelProperty("⽹点层级")
        private String type;

        @ApiModelProperty("推荐级别：0-智能推荐；1-距离最近；2-等待最短；3-办件最快")
        private Set<Integer> recommend;

        @ApiModelProperty("⽹点名称")
        private String title;

        @ApiModelProperty("距离（公⾥）")
        private Double distance;

        @ApiModelProperty("位置[经纬度]")
        private Double[] position;

        @ApiModelProperty("⽹点地址")
        private String address;

        @ApiModelProperty("⽹点电话")
        private String tel;

        @ApiModelProperty("等待⼈数（个）")
        private int waitNum;

        @ApiModelProperty("等待时间（分钟）")
        private int waitTime;

        @ApiModelProperty("办理时间（分钟）")
        private int handleTime;

        @ApiModelProperty("后端处理逻辑所需，前端不关心该字段")
        private Double totalTime;

        @ApiModelProperty("是否可预约办理")
        private Boolean isDoYY;

    }


}
